import { defineStore } from "pinia";
import { ref } from "vue";

export const useLoadingStore = defineStore('loading', () => {
    const loading = ref(false)
    const showLoading = () => {
        loading.value = true
    }

    const closeLoading = () => {
        loading.value = false
    }
    return {
        loading,
        showLoading,
        closeLoading
    }
})